import request from '@/utils/request'

export function getList(data: any) {
  return request({
    url: '/admin/customList',
    method: 'post',
    data,
  })
}

export function doInsert(data: any) {
  return request({
    url: '/admin/insertCustom',
    method: 'post',
    data,
  })
}

export function doUpdate(data: any) {
  return request({
    url: '/admin/updateCustom',
    method: 'post',
    data,
  })
}

export function doState(data: any) {
  return request({
    url: '/admin/updateCustomState',
    method: 'post',
    data,
  })
}

export function doStatus(data: any) {
  return request({
    url: '/admin/updateCustomStatus',
    method: 'post',
    data,
  })
}

export function doIntention(data: any) {
  return request({
    url: '/admin/updateCustomIntention',
    method: 'post',
    data,
  })
}

export function doDrow(data: any) {
  return request({
    url: '/admin/updateCustomDrow',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/admin/customDel',
    method: 'post',
    data,
  })
}

export function getFollows(data: any) {
  return request({
    url: '/admin/getFollows',
    method: 'post',
    data,
  })
}

export function insertFollow(data: any) {
  return request({
    url: '/admin/insertFollow',
    method: 'post',
    data,
  })
}

export function exportTemplate(data: any) {
  return request({
    url: '/admin/exportTemplate',
    method: 'post',
    data,
  })
}

export function exportLog(params?: any) {
  return request({
    url: '/admin/exportLog',
    method: 'get',
    params,
  })
}

export function getCustomReport(params?: any) {
  return request({
    url: '/admin/getCustomReport',
    method: 'get',
    params,
  })
}

export function getCustomInfo(data?: any) {
  return request({
    url: '/admin/customInfo',
    method: 'post',
    data,
  })
}
